# list = [1, 2, 3]
# tup = tuple(list)
# print(tup)
# tup = (1, 2, 3)
# tup.remove(1)
# print(tup)
# t1 = (1,2,3,7,9,0,5)
# t2 = (1,2,5)
# t1 = t2
# print(hex(id(t1)))
# print(hex(id(t1)))
# print(t1 == t2)
# print(t1 < t2)
# print(t1 > t2)
# s = {1, 3, 4}
# print(s)

# s = {(1, 2), (4, 5)}
# print(s)
# students ={"peter","john"}
# print(students)
# print(type(students))
# students.add("john")
# students.add('peterson')
# students.remove("peter")
# print(students)

# student1 ={"peter","john","tim"}
# student2 ={"peter","johnson","tim"}
# print(student1.issuperset({"john"}))
# print(student1.(student2))
# s1={1,4,5,6}
# s2={1,3,6,7}
# print(s1.symmetric_difference(s2))
# print(s1 ^ s2)


# s = input()
# s = s[::-1]
# the_sum = 0
# for i in range(len(s)):
#     if s[i].isdigit():
#         the_sum += int(s[i]) * 16 ** i
#     else:
#         the_sum += (ord(s[i]) - 87) * 16 ** i
# print(the_sum)

# word1 = input().lower()
# word2 = input().lower()
# for letter in word1:
#     if letter in word2:
#         print('YES')
#         break
# else:
#     print('NO')

# word1 = set(input().lower())
# word2 = set(input().lower())
# if word1 & word2:
#     print('YES')
# else:
#     print('NO')

#手机键盘
digit_to_letter = {
    '2': 'abc',
    '3': 'def',
    '4': 'ghi',
    '5': 'jkl',
    '6': 'mno',
    '7': 'pqrs',
    '8': 'tuv',
    '9': 'wxyz',
    '*': '+',
    '0': ' ',
    '↑': '#'
}
letter_to_digit = {}
for digit, letters in digit_to_letter.items():
    for letter in letters:
        letter_to_digit[letter] = digit

s = input().lower()
result = []
for char in s:
    if char in letter_to_digit:
        result.append(letter_to_digit[char])
    elif char.isdigit():
        result.append(char)

print(''.join(result))




